package site.shihuan.helpdesk.service.exception;

import site.shihuan.helpdesk.common.model.IResultCode;

/**
 * 客服接口错误码
 *
 * @author 周世焕
 * @Date 2021/3/1 22:07
 */
public enum ServiceResultCode implements IResultCode {
    WAITING(1001,"正在接入人工客服"),
    VISITOR_NOT_EXISTS(1002,"访客不存在"),
    ACCESS_DENY(1003,"身份验证出错，无法获取用户信息");

    private int code;

    private String msg;

    ServiceResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getCodeMsg() {
        return msg;
    }
}
